/**
 * 
 */
package com.google.code.sip.ucenter.ws.dto;

import java.util.Date;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

import com.google.code.sip.ucenter.ws.adapter.DateAdapter;

/**
 * 通知数据传输类
 * 
 * @author Liuye
 * 
 */
@XmlRootElement(name = "notification")
@XmlSeeAlso(BaseDto.class)
@XmlAccessorType(XmlAccessType.FIELD)
@SuppressWarnings("serial")
public class NotificationDto extends BaseDto {
	public static final String FORMAT_HTML = "html";
	public static final String FORMAT_PLAIN_TEXT = "text";

	/**
	 * 通知接收人
	 */
	private String receiver;

	/**
	 * 通知标题
	 */
	private String title;
	/**
	 * 通知内容
	 */
	private String content;

	/**
	 * 创建日期
	 */
	@XmlJavaTypeAdapter(DateAdapter.class)
	private Date createdDate;
	/**
	 * 接收人是否阅读
	 * 
	 */
	private boolean readed;

	/**
	 * 阅读日期
	 * 
	 */
	private Date readedDate;
	/**
	 * 是否系统短信的标记
	 */
	private boolean systemNotice;

	public String getReceiver() {
		return receiver;
	}

	public void setReceiver(String userId) {
		this.receiver = userId;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public boolean isReaded() {
		return readed;
	}

	public void setReaded(boolean readed) {
		this.readed = readed;
	}

	public Date getCreatedDate() {
		return createdDate;
	}

	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}

	public Date getReadedDate() {
		return readedDate;
	}

	public void setReadedDate(Date readedDate) {
		this.readedDate = readedDate;
	}

	public boolean isSystemNotice() {
		return systemNotice;
	}

	public void setSystemNotice(boolean systemNotice) {
		this.systemNotice = systemNotice;
	}
}
